<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const str = 'asfsfsawsaas'
      function fn(str){
        for(let i=0;i<str.length;i++){
          for(let j=0;j<str.length;j++){
            if(i===j) continue
            if(str[i]===str[j]){
              break
            }
            if(str[i]!=' '&&j===str.length-1){
              return str[i]
            }
          }
        }
      }
      console.log(twoFor(str));
      
    </script>
  </body>
</html>
